package com.beiming.libra.domain.dto.requestdto;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.beiming.libra.common.constants.LibraConst;
import com.beiming.libra.common.constants.ValidateMessage;
import com.beiming.libra.common.enums.UserTypeEnum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 秘书长
 */
@ApiModel("秘书长基本信息")
@Data
public class SecretaryGeneralUserRequestDTO implements Serializable {

  /**
   * 用户类型(PEOPLE[个人],COMPANY[企业],SPECIAL[专项用户],SECRETARY[办案秘书],
   * ARBITRATION[仲裁员],FINANCE[财务],LEADER[领导],ADMIN[系统管理员])
   * 
   */
  @ApiModelProperty(value = "用户类型(PEOPLE[个人],COMPANY[企业],SPECIAL[专项用户],SECRETARY[办案秘书], ARBITRATION[仲裁员],FINANCE[财务],LEADER[领导],ADMIN[系统管理员])", required = true)
  @NotNull(message = ValidateMessage.USER_TYPE_NOT_BLANK)
  private UserTypeEnum userType;

  /**
   * 图片:照片
   */
  @ApiModelProperty(value = "图片:照片 ")
  private String imgPhoto;
  /**
   * 用户名
   */
  @ApiModelProperty(value = "用户名", required = true)
  @NotBlank(message = ValidateMessage.LOGIN_NAME_NOT_BLANK)
  private String loginName;

  /**
   * 真实姓名
   */
  @ApiModelProperty(value = "真实姓名")
  private String actualName;

  /**
   * 性别
   */
  @ApiModelProperty(value = "性别")
  private String sex;

  /**
   * 手机号
   */
  @ApiModelProperty(value = "手机号", required = true)
  @NotBlank(message = ValidateMessage.MOBILE_PHONE_NOT_BLANK)
  @Pattern(regexp = LibraConst.REGEX_MOBILE_EXACT, message = ValidateMessage.MOBILE_PHONE_INCORRECT)
  private String mobilePhone;

}
